package com.ruoyi.restaurant.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单详细管理对象 tb_order_detail
 * 
 * @author Zhang
 * @date 2023-11-26
 */
public class TbOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 所属订单id */
    @Excel(name = "所属订单id")
    private Long orderId;

    /** 菜品id */
    @Excel(name = "菜品id")
    private Long foodId;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long buyNum;

    /** 用户购买时的折扣 */
    @Excel(name = "用户购买时的折扣")
    private Long discount;

    /** 0 表示正常 1表示已删 */
    private Long disabled;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setFoodId(Long foodId) 
    {
        this.foodId = foodId;
    }

    public Long getFoodId() 
    {
        return foodId;
    }
    public void setBuyNum(Long buyNum) 
    {
        this.buyNum = buyNum;
    }

    public Long getBuyNum() 
    {
        return buyNum;
    }
    public void setDiscount(Long discount) 
    {
        this.discount = discount;
    }

    public Long getDiscount() 
    {
        return discount;
    }
    public void setDisabled(Long disabled) 
    {
        this.disabled = disabled;
    }

    public Long getDisabled() 
    {
        return disabled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("foodId", getFoodId())
            .append("buyNum", getBuyNum())
            .append("discount", getDiscount())
            .append("disabled", getDisabled())
            .toString();
    }
}
